package com.jack.helloworld.activity.mode;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.jack.helloworld.R;
import com.orhanobut.logger.Logger;

public class SecondActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        Logger.d("SecondActivity#onCreate");
        Logger.d("SecondActivity#onCreate#task id: " + getTaskId());
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Logger.d("SecondActivity#onDestroy");
    }

    public void doClick(View view) {
        Intent intent;
        switch (view.getId()) {
            case R.id.btn_activity_second_to_second:
                intent = new Intent(this, SecondActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_activity_second_to_first:
                intent = new Intent(this, FirstActivity.class);
                startActivity(intent);
                break;
        }
    }
}
